image: support scale factor when loading from GResource and file
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 19 Jul 2014 20:03:58 +0000 (13:03 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 29 Jul 2014 08:13:21 +0000 (10:13 +0200)
commit7e425f301950a35fbba031a6ba548209e2ec2c1e
tree14bd4daba4fafa7c2967e9a1260c084214411cdc
parenta23c29c0fb7c9f5064fd16f42c66a79f8f386352
image: support scale factor when loading from GResource and file

Currently, when loading an image from a GResource or file we don't take
the scale factor of the display into consideration, and let
GtkIconHelper scale it accordingly.
While this in general works for non-scalable images, we can take
advantage of the native loader's scaling for e.g. SVG images, and load
them at the right scale factor automatically.
This is achieved by switching to a pixbuf loader instead of using the
native function.

https://bugzilla.gnome.org/show_bug.cgi?id=733416
gtk/gtkimage.c